﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200150F RID: 5391
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class WorkbenchComposeMiracleFunc : IMessage<WorkbenchComposeMiracleFunc>, IMessage, IEquatable<WorkbenchComposeMiracleFunc>, IDeepCloneable<WorkbenchComposeMiracleFunc>, IBufferMessage
	{
		// Token: 0x170043E1 RID: 17377
		// (get) Token: 0x0600F137 RID: 61751 RVA: 0x00283E24 File Offset: 0x00282024
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<WorkbenchComposeMiracleFunc> Parser
		{
			get
			{
				return WorkbenchComposeMiracleFunc._parser;
			}
		}

		// Token: 0x170043E2 RID: 17378
		// (get) Token: 0x0600F138 RID: 61752 RVA: 0x00283E2B File Offset: 0x0028202B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return WorkbenchComposeMiracleFuncReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170043E3 RID: 17379
		// (get) Token: 0x0600F139 RID: 61753 RVA: 0x00283E3D File Offset: 0x0028203D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return WorkbenchComposeMiracleFunc.Descriptor;
			}
		}

		// Token: 0x0600F13A RID: 61754 RVA: 0x00283E44 File Offset: 0x00282044
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchComposeMiracleFunc()
		{
		}

		// Token: 0x0600F13B RID: 61755 RVA: 0x00283E58 File Offset: 0x00282058
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchComposeMiracleFunc(WorkbenchComposeMiracleFunc other) : this()
		{
			this.freeReforgeNum_ = other.freeReforgeNum_;
			this.oKGBOHICKGA_ = other.oKGBOHICKGA_.Clone();
			this.intReforgeNumValue_ = other.intReforgeNumValue_;
			this.costData_ = ((other.costData_ != null) ? other.costData_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600F13C RID: 61756 RVA: 0x00283EC1 File Offset: 0x002820C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchComposeMiracleFunc Clone()
		{
			return new WorkbenchComposeMiracleFunc(this);
		}

		// Token: 0x170043E4 RID: 17380
		// (get) Token: 0x0600F13D RID: 61757 RVA: 0x00283EC9 File Offset: 0x002820C9
		// (set) Token: 0x0600F13E RID: 61758 RVA: 0x00283ED1 File Offset: 0x002820D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FreeReforgeNum
		{
			get
			{
				return this.freeReforgeNum_;
			}
			set
			{
				this.freeReforgeNum_ = value;
			}
		}

		// Token: 0x170043E5 RID: 17381
		// (get) Token: 0x0600F13F RID: 61759 RVA: 0x00283EDA File Offset: 0x002820DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MapField<uint, bool> OKGBOHICKGA
		{
			get
			{
				return this.oKGBOHICKGA_;
			}
		}

		// Token: 0x170043E6 RID: 17382
		// (get) Token: 0x0600F140 RID: 61760 RVA: 0x00283EE2 File Offset: 0x002820E2
		// (set) Token: 0x0600F141 RID: 61761 RVA: 0x00283EEA File Offset: 0x002820EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int IntReforgeNumValue
		{
			get
			{
				return this.intReforgeNumValue_;
			}
			set
			{
				this.intReforgeNumValue_ = value;
			}
		}

		// Token: 0x170043E7 RID: 17383
		// (get) Token: 0x0600F142 RID: 61762 RVA: 0x00283EF3 File Offset: 0x002820F3
		// (set) Token: 0x0600F143 RID: 61763 RVA: 0x00283EFB File Offset: 0x002820FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData CostData
		{
			get
			{
				return this.costData_;
			}
			set
			{
				this.costData_ = value;
			}
		}

		// Token: 0x0600F144 RID: 61764 RVA: 0x00283F04 File Offset: 0x00282104
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as WorkbenchComposeMiracleFunc);
		}

		// Token: 0x0600F145 RID: 61765 RVA: 0x00283F14 File Offset: 0x00282114
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(WorkbenchComposeMiracleFunc other)
		{
			return other != null && (other == this || (this.FreeReforgeNum == other.FreeReforgeNum && this.OKGBOHICKGA.Equals(other.OKGBOHICKGA) && this.IntReforgeNumValue == other.IntReforgeNumValue && object.Equals(this.CostData, other.CostData) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600F146 RID: 61766 RVA: 0x00283F88 File Offset: 0x00282188
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.FreeReforgeNum != 0U)
			{
				num ^= this.FreeReforgeNum.GetHashCode();
			}
			num ^= this.OKGBOHICKGA.GetHashCode();
			if (this.IntReforgeNumValue != 0)
			{
				num ^= this.IntReforgeNumValue.GetHashCode();
			}
			if (this.costData_ != null)
			{
				num ^= this.CostData.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600F147 RID: 61767 RVA: 0x00284004 File Offset: 0x00282204
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600F148 RID: 61768 RVA: 0x0028400C File Offset: 0x0028220C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600F149 RID: 61769 RVA: 0x00284018 File Offset: 0x00282218
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.costData_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.CostData);
			}
			if (this.FreeReforgeNum != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.FreeReforgeNum);
			}
			if (this.IntReforgeNumValue != 0)
			{
				output.WriteRawTag(104);
				output.WriteInt32(this.IntReforgeNumValue);
			}
			this.oKGBOHICKGA_.WriteTo(ref output, WorkbenchComposeMiracleFunc._map_oKGBOHICKGA_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600F14A RID: 61770 RVA: 0x002840A0 File Offset: 0x002822A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.FreeReforgeNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FreeReforgeNum);
			}
			num += this.oKGBOHICKGA_.CalculateSize(WorkbenchComposeMiracleFunc._map_oKGBOHICKGA_codec);
			if (this.IntReforgeNumValue != 0)
			{
				num += 1 + CodedOutputStream.ComputeInt32Size(this.IntReforgeNumValue);
			}
			if (this.costData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.CostData);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600F14B RID: 61771 RVA: 0x00284124 File Offset: 0x00282324
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(WorkbenchComposeMiracleFunc other)
		{
			if (other == null)
			{
				return;
			}
			if (other.FreeReforgeNum != 0U)
			{
				this.FreeReforgeNum = other.FreeReforgeNum;
			}
			this.oKGBOHICKGA_.MergeFrom(other.oKGBOHICKGA_);
			if (other.IntReforgeNumValue != 0)
			{
				this.IntReforgeNumValue = other.IntReforgeNumValue;
			}
			if (other.costData_ != null)
			{
				if (this.costData_ == null)
				{
					this.CostData = new ItemCostData();
				}
				this.CostData.MergeFrom(other.CostData);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600F14C RID: 61772 RVA: 0x002841B1 File Offset: 0x002823B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600F14D RID: 61773 RVA: 0x002841BC File Offset: 0x002823BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 50U)
					{
						if (this.costData_ == null)
						{
							this.CostData = new ItemCostData();
						}
						input.ReadMessage(this.CostData);
						continue;
					}
					if (num == 72U)
					{
						this.FreeReforgeNum = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.IntReforgeNumValue = input.ReadInt32();
						continue;
					}
					if (num == 122U)
					{
						this.oKGBOHICKGA_.AddEntriesFrom(ref input, WorkbenchComposeMiracleFunc._map_oKGBOHICKGA_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005F37 RID: 24375
		private static readonly MessageParser<WorkbenchComposeMiracleFunc> _parser = new MessageParser<WorkbenchComposeMiracleFunc>(() => new WorkbenchComposeMiracleFunc());

		// Token: 0x04005F38 RID: 24376
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005F39 RID: 24377
		public const int FreeReforgeNumFieldNumber = 9;

		// Token: 0x04005F3A RID: 24378
		private uint freeReforgeNum_;

		// Token: 0x04005F3B RID: 24379
		public const int OKGBOHICKGAFieldNumber = 15;

		// Token: 0x04005F3C RID: 24380
		private static readonly MapField<uint, bool>.Codec _map_oKGBOHICKGA_codec = new MapField<uint, bool>.Codec(FieldCodec.ForUInt32(8U, 0U), FieldCodec.ForBool(16U, false), 122U);

		// Token: 0x04005F3D RID: 24381
		private readonly MapField<uint, bool> oKGBOHICKGA_ = new MapField<uint, bool>();

		// Token: 0x04005F3E RID: 24382
		public const int IntReforgeNumValueFieldNumber = 13;

		// Token: 0x04005F3F RID: 24383
		private int intReforgeNumValue_;

		// Token: 0x04005F40 RID: 24384
		public const int CostDataFieldNumber = 6;

		// Token: 0x04005F41 RID: 24385
		private ItemCostData costData_;
	}
}
